const http = require('http')
var app = http.createServer((request, response) => {
  let str = request.url;
  response.write(str);
  response.end();
})
// .listen(3000, (err) => {
//   if (err) {
//     console.log(err);
//   } else {
//     console.log('localtion start 3000')
//   }
// })

app.listen(3000, () => {
  console.log('localtion start 3000')
})

